package com.ita.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ita.dao.IBookDaoITA;
import com.ita.service.IBookServiceITA;
import com.ita.vo.Book;
@Service(value="bookServiceITA")
public class BookServiceITAImpl implements IBookServiceITA {

//	public IBookDaoITA dao=new BookDaoITAImpl();
	
	public IBookDaoITA dao;
	@Resource
	public void setDao(IBookDaoITA dao) {
		this.dao = dao;
	}

	
	
	@Override
	public Book insert(Book book) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Book modify(Book book) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Book> showAllBook() {
		// TODO Auto-generated method stub
		return dao.queryAll();
	}

	@Override
	public Book deleteById(String bookid) {
		// TODO Auto-generated method stub
		return dao.remove(bookid);
	}

	@Override
	public Book delete(Book book) {
		// TODO Auto-generated method stub
		return null;
	}

}
